home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: [Q] functions returning structures
- Date: 03 Mar 1996 05:59:59 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar2225959@qcd.lanl.gov>
- References: <4hasjj$opf@decaxp.harvard.edu>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: martino@course2.harvard.edu's message of 3 Mar 1996 01:28:19 GMT
-
- In article <4hasjj$opf@decaxp.harvard.edu>
- martino@course2.harvard.edu (Carlo Martino) writes:
- <snip>
- CM: What was going wrong? Is there a way to return structures without putting
-
- Did the name of the newsgroup change to comp.lang.c.clairvoyant when I
- wasn't looking?
-
- CM: them on the heap? When am I at risk for structures to become corrupt and
- CM: when am I OK?
-
- Returning struct is completely okay (it may not necessarily be the
- most efficient way, but that is not an issue here). But code can be
- incorrect in many ways: post a small example of your code, and we can
- see.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-